use crate::core::entity::whitelist_key::WhitelistKey;
use crate::core::model::resource_version_entry::ResourceVersionEntry;
use serde::{Deserialize, Serialize};
use share::core::channel::Channel;
use share::core::native_version::NativeVersion;
use std::collections::HashMap;

#[derive(Deserialize)]
pub struct PostOrPutWhitelistRequest {
    pub channel: Channel,
    pub native_version: NativeVersion,
    pub key: WhitelistKey,
    pub resource_version: ResourceVersionEntry,
}

#[derive(Serialize, Deserialize)]
pub struct PostManyWhitelistRequest {
    pub channel: Channel,
    pub native_version: NativeVersion,
    pub entries: HashMap<WhitelistKey, ResourceVersionEntry>,
}
